﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InfoPick.Lib.Tools;
using InfoPick.Lib.Entity;

namespace InfoPick.Lib.StringResolve
{
    public class TDMIUResolver 
    {
        public static List<TDMIU> ResolveList(string str)
        {

            List<TDMIU> list = new List<TDMIU>();
            if (!string.IsNullOrEmpty(str))
            {
                //e32
                {
                    var table = StringTools.GetTable(str, "E32/T32 TID 配置表", "(结果个数");
                    foreach (var item in table)
                    {
                        var obj = TDMIU.Create(item);
                        if (obj != null)
                            list.Add(obj);
                    }
                }
                //s1l s2l
                {
                    var table = StringTools.GetTable(str, "S2L/S1L TID 配置表", "(结果个数");
                    foreach (var item in table)
                    {
                        var obj = TDMIU.Create(item);
                        if (obj != null)
                            list.Add(obj);
                    }
                }
            }
            return list;
        }
    }

    
}
